package com.xc.ezplan.admin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xc.ezplan.admin.entity.AdminQiniuContent;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xc.ezplan.admin.vo.AdminQiniuContentVo;
import com.xc.ezplan.core.base.BaseSearchBody;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @author lixingchen
 * @date 2022/11/21
 * @description 七牛云内容接口
 */
public interface AdminQiniuContentService extends IService<AdminQiniuContent> {

    void exportQiNiu(HttpServletResponse response, AdminQiniuContentVo adminQiniuContentVo) throws IOException;

    Object downloadQiNiu(Long id);

    void deleteQiNiu(List<Long> ids,Long configId);

    void synchronizeQiNiu(Long configId);

    Object uploadQiNiu(MultipartFile file,Long configId);

    Object pageQueryQiNiu(BaseSearchBody<AdminQiniuContent> baseSearchBody);
}
